<html>
<body>
Reports not-null assertion (<code>!!</code>) calls that can be replaced with the elvis operator and return (<code>?: return</code>).
<p>A not-null assertion can lead to NPE (NullPointerException) that is not expected. Avoiding the use of <code>!!</code> is good practice.</p>
<p>The quick-fix replaces the not-null assertion with <code>return</code> or <code>return null</code>.</p>
<p><b>Example:</b></p>
<pre><code>
  fun test(number: Int?) {
      val x = number!!
  }
</code></pre>
<p>After the quick-fix is applied:</p>
<pre><code>
  fun test(number: Int?) {
      val x = number ?: return
  }
</code></pre>
<!-- tooltip end -->
</body>
</html>